<div class="banner" id="banner">
    <div class="bd">
        <ul>
            <!--list:{table="ads" id="10" limit="1"}-->
            <?php
                if($list['adfile']!=''){
                $photo_i=1;
                foreach(explode('|-|',$list['adfile']) as $k=>$v){
            $s=explode('|,|',$v);
            ?>
            <li class="banner{$k}" title="" onclick="window.open('{$s[2]}')" style="background-image: url('{$s[0]}');background-position: center top; background-repeat: no-repeat;cursor:pointer;"></li>
            <?php }} ?>
            <!--/list-->
        </ul>
        <a class="prev" href="javascript:void(0)"></a>
        <a class="next" href="javascript:void(0)"></a>
    </div>
</div>
<!--bannerJs-->
<script type="text/javascript">
    jQuery(".banner").slide({mainCell:".bd ul",autoPlay:true,mouseOverStop:false});
</script>